package LQB_Learning;

import java.util.*;
import java.io.*;
public class IO{
    //PrintWriter out:高效缓冲输出
    //BufferedWriter提供字符缓冲功能，将多次小的输出合并为一次底层IO操作，
    // BufferedWriter的缓冲数据不会实时写入底层流，需通过close()触发刷新（内部会调用flush()）。若遗漏，可能导致部分输出未打印。
    public static PrintWriter out = new PrintWriter(
            new BufferedWriter(
                    new OutputStreamWriter(System.out)
            )
    );
    public static Read in = new Read();

    public static void main(String[] args) throws IOException {
        // 写代码
        out.close();
    }
}

class Read{
    StringTokenizer st = new StringTokenizer("");
    BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
    String next() throws IOException {
        while(!st.hasMoreTokens()) {
            st = new StringTokenizer(bf.readLine());
        }
        return st.nextToken();
    }

    String nextLine() throws IOException {
        return bf.readLine();
    }

    int nextInt() throws IOException {
        return Integer.parseInt(next());
    }

    long nextLong() throws IOException {
        return Long.parseLong(next());
    }

    double nextDouble() throws IOException {
        return Double.parseDouble(next());
    }
}